const sequelize = require("./db");
const { DataTypes } = require("sequelize");

//日志表
const Model = sequelize.define(
    "loginfo",
    {
      id: {
        type: DataTypes.UUID,
        primaryKey: true,
        defaultValue: DataTypes.UUIDV4,
      },
      name: {
        type: DataTypes.STRING,
      },
      type: {
        type: DataTypes.STRING,
      },
      event: {
        type: DataTypes.STRING,
      },
      content:{
        type:DataTypes.TEXT("long"),
      },
    },
    {
      freezeTableName: true,
    }
  );
  module.exports = Model;
  